package com.tengol.demo.design.pattern.structural.flyweight;

/**
 * IntegerTest
 *
 * @author dongrui
 * @date 2019/03/07
 */
public class IntegerTest {
    public static void main(String[] args) {
        Integer a = Integer.valueOf(10);
        Integer b = 10;
        Integer c = Integer.valueOf(1000);
        Integer d = 1000;
        System.out.println(a == b);
        System.out.println(c == d);
    }
}
